home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
328_01
/
wexit.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-15
|
404b
|
31 lines
/*! wexit.c
*
* verify that user wants to quit,
* if yes, exit to DOS.
*/
#include "wsys.h"
void wexit (void)
{
unsigned char saveattr;
int key;
saveattr = wgetattr();
wsetattr( ( RED<<4) + WHITE ) ;
key =wpromptc (NULL, "Verify: Q = quit program, ESCAPE = continue",
"Quit", NULL);
if ( key == 'Q' )
exit(00);
wsetattr (saveattr);
return;
}